import http from '@/utils/http'
// 获取直播和课程
export function getLivesAndCourses(params) {
  return http.get('/webapi/api/live_course', params)
}
// 获取资讯详情
export function getInformationDetail(params) {
  return http.get('/newsapi/web/news_detail', params)
}
// 获取热门推荐和大家都在搜
export function getRelevantArticle(params) {
  return http.get('/newsapi/web/hot_search', params)
}
// 获取文章是否收藏
export function getCollectionStatus(params) {
  return http.get('/wxpub/news/check_collection', params)
}
// 收藏文章
export function postCollectionArticle(params) {
  return http.post('/wxpub/news/news_collection', params)
}
// 取消收藏文章
export function postXCancleCollectionArticle(params) {
  return http.get('/wxpub/news/cancel_collection', params)
}

// 获取文章分数
export function getArtScore(params) {
  return http.get('/wxpub/news/news_score', params)
}
// 设置文章评分
export function postArtScore(params) {
  return http.post('/wxpub/news/news_score', params)
}
// 删除文章评分
export function delArtScore(params) {
  return http.delete('/wxpub/news/news_score', params)
}
// 获取点赞情况
export function getArtLike(params) {
  return http.get('/wxpub/news/news_like', params)
}
// 添加文章点赞
export function postArtLike(params) {
  return http.post('/wxpub/news/news_like', params)
}
// 取消文章点赞
export function postCancleArtLike(params) {
  return http.post('/wxpub/news/news_like_delete', params)
}
// 点赞、收藏、分享数量、浏览量统计,走node请求
export function getCounts(params) {
  return http.get('/proxy/newsapi/web/news_zan', params)
}
